package com.cy.pet.common.service;

import com.cy.pet.common.pojo.Comment;
import com.cy.pet.common.pojo.Topic;
import com.cy.pet.common.vo.PageResult;
import java.text.ParseException;

import java.util.List;

/**
 * @description:
 * @author: LiuXingYu
 * @date: 2021/9/30 15:41
 */
public interface ForumService {
    PageResult findAllTopicList(PageResult pageResult) throws ParseException;

    Topic findATopicById(Integer id);

    List<Comment> findAllCommentByTopicId(Integer id);

    void saveComment(Comment comment);

    void addTopic(Topic topic);

    List<Topic> findHotTopicList();

}
